package world.snowcrystal.nova.model.enums;

import lombok.Getter;

@Getter
public enum AppScoringTypeEnum {

    MEASUREMENT("积分类",0),
    ASSESSMENT("测评类",1),
    ;

    private final String text;
    private final int value;



    AppScoringTypeEnum(String text, int value) {
        this.value = value;
        this.text = text;
    }
    public static AppScoringTypeEnum get(Integer value) {
        if (value == null) {
            return null;
        }
        for (AppScoringTypeEnum appScoringTypeEnum : AppScoringTypeEnum.values()) {
            if (appScoringTypeEnum.getValue() == value) {
                return appScoringTypeEnum;
            }
        }
        return null;
    }

}
